using Entity;

namespace MoonFramework.FSM
{
    public abstract class BaseState : IState
    {
        public BaseFsm<Actor> fsmMachine;
        protected Actor _actor;
        
        public void Init(BaseFsm<Actor> fsmMachine)
        {
            this.fsmMachine = fsmMachine;
            _actor = this.fsmMachine.entity;
        }

        public abstract void Enter(); //状态进入
        public abstract void Exit(); //状态退出
    }
}